package com.slz3.business.module.wmsManagement.wmsPurchaseOrderThree.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.wmsManagement.wmsPurchaseOrderThree.domain.WmsPurchaseOrderThree;
import com.slz3.business.module.wmsManagement.wmsPurchaseOrderThree.domain.WmsPurchaseOrderThreeCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class WmsPurchaseOrderThreeResAtomic extends WmsPurchaseOrderThreeResExecutor {

    public Mono<ServerResponse> add_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThree wmsPurchaseOrderThree) {
        return WmsPurchaseOrderThreeResSafeValid.add(req, wmsPurchaseOrderThree) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, wmsPurchaseOrderThree);
    }

    public Mono<ServerResponse> delete_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThreeCondition wmsPurchaseOrderThreeCondition) {
        return WmsPurchaseOrderThreeResSafeValid.delete(req, wmsPurchaseOrderThreeCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThree wmsPurchaseOrderThree) {
        return WmsPurchaseOrderThreeResSafeValid.modify(req, wmsPurchaseOrderThree) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, wmsPurchaseOrderThree);
    }

    public Mono<ServerResponse> info_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req) {
        return WmsPurchaseOrderThreeResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThreeCondition wmsPurchaseOrderThreeCondition) {
        return WmsPurchaseOrderThreeResSafeValid.auditSubmit(req, wmsPurchaseOrderThreeCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThreeCondition wmsPurchaseOrderThreeCondition) {
        return WmsPurchaseOrderThreeResSafeValid.audit(req, wmsPurchaseOrderThreeCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThreeCondition wmsPurchaseOrderThreeCondition) {
        return WmsPurchaseOrderThreeResSafeValid.auditReject(req, wmsPurchaseOrderThreeCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThreeCondition wmsPurchaseOrderThreeCondition) {
        return WmsPurchaseOrderThreeResSafeValid.usingEnable(req, wmsPurchaseOrderThreeCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$WmsPurchaseOrderThreeUpdateLock(ServerRequest req, WmsPurchaseOrderThreeCondition wmsPurchaseOrderThreeCondition) {
        return WmsPurchaseOrderThreeResSafeValid.usingDisable(req, wmsPurchaseOrderThreeCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
